<?php
error_reporting(0);
require 'header.php';
echo '<div class="panel-body">';
require './config/connect.php';
if($_POST['mods']){
    $title = $_POST['titles'];
    $lable = $_POST['lables'];
    $content = $_POST['contents'];
    $id = $_GET['id'];
    $modsql = "UPDATE article SET title='".$title."', content='".$content."', lable='".$lable."' WHERE id='".$id."';";
    $_mysqli->query($modsql);
    echo '修改成功';
}else{
    echo '非法提交';
}
require 'footer.php';
